﻿@model IEnumerable<VisaApp.Models.QuangcaoModel>
@if (Model.Count() > 0)
{
    foreach (var item in Model)
    {
        if (item.Type == true)
        {
            <a href="@item.Url" target="_blank" title="@item.Mota">
                <img src="@item.FileUrl"/>
            </a>
        }
        else
        {
            <a href="@item.Url" target="_blank" title="@item.Mota">
                 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
                    id="name" width="350" height="90">
                    <param name="movie" value="@item.FileUrl">
                    <param name="quality" value="high">
                    <param name="wmode" value="transparent">
                    <embed name="name" src="@item.FileUrl" quality="high" wmode="transparent" allowscriptaccess="always" width="350" height="90" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
                                                    P1_Prod_Version=ShockwaveFlash">
                </object>
            </a>
        }

    }
}